<h1>車輌登録情報</h1>
<div id="list">
<table id="order_info" border=1>
  <tr>
    <th>標識番号</th>
    <th>プレートナンバー</th>
    <th>車種</th>
    <th>サイズ</th>
    <th>塗装種類</th>
	<th>日付</th>
	<th colspan=2></th>
  </tr>

<% @orders.each do |order| %>
  <% style = cycle('list-line-odd','list-line-even')%>
  <tr class="<%= style%>">
    <td align=center><%=h order.placename + order.identity_letter + "_" + order.identity_number %></td>
    <td align=center><%=h order.plate_number %></td>
    <td align=center><%=h order.car_type %></td>
    <td align=center><%=h order.car_size %></td>
    <td align=center><%=h order.paint_type %></td>
	<td align=center><%= order.created_at.strftime("%Y/%m/%d %H:%M")%></td>
    <td><%= link_to '編集', :controller => :admin, :action => :show_info, :id => order %></td>
    <td><%= link_to '削除', order, :confirm => '削除しますか?', :method => :delete %></td>
  </tr>
<% end %>
</table>
</div>